import http from '../utils/request'
export const getMenuList = (params) => {
    return http.get('/menus', params)
}

export const getInit = () => {
    return http.get('/menus/params')
}

export const addMenu = (data) => {
    return http.post('/menus', data)
}

export const editMenu = (menu, data) => {
    return http.put(`/menus/${menu}`, data)
}

export const deleteMenu = (menu) => {
    return http.delete(`/menus/${menu}`)
}
